/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

export default {
  path: '/OA',
  component: Layout,
  redirect: '/OA/commissioner',
  alwaysShow: true, // will always show the root menu
  name: 'OA',
  meta: {
    title: '审批',
    icon: 'permission'
  },
  children: [
    {
      path: '/OA/fourthApprove',
      name: 'fourthApprove',
      component: () => import('@/views/fourthOperate/OAIndex.vue'),
      meta: { title: '初审', icon: 'personnel' },
    },
    {
      path: '/OA/AuditDetial',
      name: 'AuditDetial',//注：不能命名为AuditDetial，原因未知
      component: () => import('@/views/fourthOperate/AuditDetial.vue'),
      meta: { title: '初审详情', icon: 'personnel' },
      hidden: true,
    },
    {
      path: '/OA/thirdApprove',
      name: 'thirdApprove',
      component: () => import('@/views/thirdOperate/OAIndex.vue'),
      meta: { title: '复审', icon: 'personnel' },
    },
    {
      path: '/OA/ThirdAuditDetial',
      name: 'ThirdAuditDetial',
      component: () => import('@/views/thirdOperate/AuditDetial.vue'),
      meta: { title: '复审详情', icon: 'personnel' },
      hidden: true,
    },
    {
      path: '/OA/secondApprove',
      name: 'secondApprove',
      component: () => import('@/views/secondOperate/OAIndex.vue'),
      meta: { title: '终审', icon: 'personnel' },
    },
    {
      path: '/OA/secondDetial',
      name: 'secondDetial',
      component: () => import('@/views/secondOperate/AuditDetial.vue'),
      meta: { title: '终审详情', icon: 'personnel' },
      hidden: true,
    },
    {
      path: '/OA/wageFile',
      name: 'wageFile',
      component: () => import('@/views/perform-file/index.vue'),
      meta: { title: '绩效专员归档', icon: 'personnel' },
    },

    {
      path: '/OA/progress',
      name: 'progress',
      component: () => import('@/views/progress/index.vue'),
      meta: { title: '绩效考核进度', icon: 'personnel' },
    },
  ]
}

